package com.simba;

import com.simba.thrift.ThriftServer;
import com.simba.thrift.service.HelloService;
import com.simba.thrift.service.HelloServiceImpl;
import org.apache.thrift.transport.TTransportException;

/**
 * Created by shuoGG on 2018/6/20
 */
public class ThriftServerTest {
    public static void main(String[] args) {
        try {
            HelloService.Processor<HelloService.Iface> processor = new HelloService.Processor<>(new HelloServiceImpl());
            ThriftServer.start(9090, processor);
        } catch (TTransportException e) {
            e.printStackTrace();
        }
    }
}
